#include <iostream>
using namespace std;
int n, u, d, h;
int main(){
	cin >> n >> u >> d >> h;
	cout << (u + d) * h / n << endl;

    return 0;
}


